package net.xujialiang.XTestRPA.Controller;


import net.xujialiang.XTestRPA.Model.ResultData;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.LinkedHashMap;
import java.util.Map;

@RequestMapping("/anonymous/api/health")
@RestController
public class HealthCheck {

    @RequestMapping(value = "/status", method = RequestMethod.GET)
    @ResponseBody
    public ResultData<Map<String, Object>> getStatus() {
        Map<String, Object> ret = new LinkedHashMap<>();
        ret.put("status", "Running!");
        return ResultData.success(ret);
    }
}
